package dfferber.xstream;

import com.thoughtworks.xstream.converters.collections.CollectionConverter;
import com.thoughtworks.xstream.mapper.Mapper;

public class SanitizedCollectionConverter extends CollectionConverter {
	SuperClassCollection superClassCollection = new SuperClassCollection();
	
	public SanitizedCollectionConverter(Mapper mapper) {
		super(mapper);
	}
	@Override
	public boolean canConvert(Class type) {
		return superClassCollection.contains(type);
	}
	
	public SuperClassCollection getSuperClassCollection() {
		return superClassCollection;
	}
}
